﻿using CommandSystem;
using RemoteAdmin;
using System;

namespace Command
{
    [CommandHandler(typeof(GameConsoleCommandHandler))]
    [CommandHandler(typeof(RemoteAdminCommandHandler))]
    public class VoteCommand
    {
        public string Command => "vote";

        public string[] Aliases { get; } = { "vt" };

        public string Description => "聊天文本";

        public bool SanitizeResponse => true;

        public string[] Usage { get; } = { "投票文本" };

        public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response)
        {
            bool isPlayer = sender is PlayerCommandSender;

            if (!isPlayer)
            {
                response = "你必须以一名玩家身份发送该命令！";
                return false;
            }


            response = "命令成功";
            return true;
        }

    }
}
